package com.soulless.annotation.db;

import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author zenglei
 * @date 2022/04/22/ 13:50
 */
@DBTable(name = "demoDto")
@Data
public class DemoDTO {
    //主键ID
    @SQLString(name = "ID",value = 50, constraint = @Constraints(primaryKey = true))
    private String id;

    @SQLString(name = "NAME" , value = 30)
    private String name;

    @SQLInteger(name = "AGE")
    private int age;

    @SQLString(name = "DESCRIPTION" ,value = 150 , constraint = @Constraints(allowNull = true))
    private String description;
}
